All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class quicktime.std.image.ImageDescription

java.lang.Object
   |
   +----quicktime.QTObject
           |
           +----quicktime.util.QTHandleRef
                   |
                   +----quicktime.std.movies.media.SampleDescription
                           |
                           +----quicktime.std.image.ImageDescription

public class ImageDescription
extends SampleDescription
implements QuickTimeLib
This class corresponds to the image description handle. refer to ImageDescription in QuickTime


Variable Index

 o kNativeSize
This is the size (the number of bytes) that are required for this class

Constructor Index

 o ImageDescription(int)
Create an ImageDescription structure
 o ImageDescription(PixMap)
Create an ImageDescription from a PixMap.

Method Index

 o clone()
Implementation of Cloneable Interface.
 o fromGraphicsImporter(GraphicsImporter)
Determines the image description information.
 o fromImageCompressionDialog(ImageCompressionDialog, QDGraphics, QDRect)
Compresses a frame that is sourced by a PixMap from the supplied QDGraphics, returning the compressed data and an image description.
 o fromSprite(Sprite)
This method gets the image description property of this sprite.
 o getBounds()
Return a QDRect that describes the width and height of the Image the description describes.
 o getClutID()
Return ID number of the color table for image.
 o getCTable()
Get the custom color table for an image.
 o getCType()
Return the compressor creator type.
 o getDataSize()
Return the size of the compressed image.
 o getDepth()
Return pixel depth of source image.
 o getEndianDescriptor()
Returns the EndianDescriptor for this class.
 o getExtension(int, int)
Obtain the extended data for an image.
 o getFrameCount()
Return number of frames in image data.
 o getHeight()
Return the height of the source image.
 o getHRes()
Return the horizontal resolution of the source image.
 o getIdSize()
Return the total size of this structure.
 o getJavaDefaultPixelDescription(int, int)
Create an ImageDescription structure that describes the default Java pixel format.
 o getName()
Return name of the compression algorithm.
 o getRevisionLevel()
Return the revision level.
 o getSpatialQuality()
Return the Spatial Quality.
 o getTemporalQuality()
Return the temporal Quality.
 o getVendor()
Return the vendor.
 o getVersion()
Return the version of compressed data.
 o getVRes()
Return the vertical resolution of the source image.
 o getWidth()
Return the width of the source image.
 o newGWorld(int)
Creates an offscreen QDGraphics object from the width, height, depth, and color table of a specified image description structure.
 o setClutID(int)
Set the id number of the color table.
 o setCTable(ColorTable)
Update the custom color table for an image.
 o setCType(int)
Set the compressor creator type.
 o setDataSize(int)
Set the data size.
 o setDepth(int)
Set the pixel depth.
 o setFrameCount(int)
Set the frame count.
 o setHeight(int)
Set height of source image in pixels.
 o setHRes(float)
Set horizontal resolution.
 o setName(String)
Set the name of the compression algorithm.
 o setRevisionLevel(int)
Set the revision level.
 o setSpatialQuality(int)
Set spatial quality.
 o setTemporalQuality(int)
Set temporal quality.
 o setVendor(int)
Set the vendor.
 o setVersion(int)
Set the version.
 o setVRes(float)
Set vertical resolution.
 o setWidth(int)
Set width of source image in pixels.
 o toString()
Returns the String representation of this Image Description.

Variables

 o kNativeSize
 public static final int kNativeSize
This is the size (the number of bytes) that are required for this class

Constructors

 o ImageDescription
 public ImageDescription(int format) throws QTException
Create an ImageDescription structure

Parameters:
format - the dataFormat
 o ImageDescription
 public ImageDescription(PixMap pixmap) throws QTException
Create an ImageDescription from a PixMap.

QuickTime::MakeImageDescriptionForPixMap

Parameters:
pixmap - the PixMap from which the imageDescription will be made

Methods

 o getEndianDescriptor
 public static EndianDescriptor getEndianDescriptor()
Returns the EndianDescriptor for this class.

Returns:
an EndianDescriptor
 o fromGraphicsImporter
 public static ImageDescription fromGraphicsImporter(GraphicsImporter gi) throws StdQTException
Determines the image description information.

QuickTime::GraphicsImportGetImageDescription

See Also:
getImageDescription
 o fromSprite
 public static ImageDescription fromSprite(Sprite s) throws StdQTException
This method gets the image description property of this sprite.

QuickTime::GetSpriteProperty ()

Returns:
the image description.
See Also:
getImageDescription
 o fromImageCompressionDialog
 public static QTImage fromImageCompressionDialog(ImageCompressionDialog icd,
                                                  QDGraphics src,
                                                  QDRect srcRect) throws QTException
Compresses a frame that is sourced by a PixMap from the supplied QDGraphics, returning the compressed data and an image description.

QuickTime::SCCompressImage()

Parameters:
src - the source PixMap.
srcRect - you can specify to compress just a part of the pix map by specifying a rectangle - or pass in null to compress the entire pix map.
Returns:
an image data object.
See Also:
compressImage
 o getJavaDefaultPixelDescription
 public static ImageDescription getJavaDefaultPixelDescription(int width,
                                                               int height) throws QTException
Create an ImageDescription structure that describes the default Java pixel format. The Application must later set the data size that describes the image represented by this image description. This is typically the size returned from one of the Encoded image formats.

Parameters:
width - width of the image
height - height of image
 o clone
 public Object clone()
Implementation of Cloneable Interface.

Overrides:
clone in class SampleDescription
 o setCTable
 public void setCTable(ColorTable cTable) throws StdQTException
Update the custom color table for an image.

QuickTime::SetImageDescriptionCTable

Parameters:
cTable - a color table.
 o getCTable
 public ColorTable getCTable() throws QTException
Get the custom color table for an image. If there is no CTable this returns null.

QuickTime::GetImageDescriptionCTable

Returns:
the ColorTable
 o getExtension
 public int getExtension(int idType,
                         int index) throws StdQTException
Obtain the extended data for an image.

QuickTime::GetImageDescriptionExtension QuickTime::GetImageDescriptionExtension

Parameters:
idType - specifies the extension's type value.
index - specifies the extension's index value.
Returns:
a handle to the returned data.
 o newGWorld
 public QDGraphics newGWorld(int flags) throws QTException
Creates an offscreen QDGraphics object from the width, height, depth, and color table of a specified image description structure.

QuickTime::NewImageGWorld

Parameters:
flags - holding graphics world flags.
Returns:
a QDGraphics.
 o getIdSize
 public int getIdSize()
Return the total size of this structure.

 o getCType
 public int getCType()
Return the compressor creator type.

 o getVersion
 public int getVersion()
Return the version of compressed data.

 o getRevisionLevel
 public int getRevisionLevel()
Return the revision level.

 o getVendor
 public int getVendor()
Return the vendor.

 o getTemporalQuality
 public int getTemporalQuality()
Return the temporal Quality.

 o getSpatialQuality
 public int getSpatialQuality()
Return the Spatial Quality.

 o getWidth
 public int getWidth()
Return the width of the source image.

 o getHeight
 public int getHeight()
Return the height of the source image.

 o getBounds
 public QDRect getBounds()
Return a QDRect that describes the width and height of the Image the description describes.

 o getHRes
 public float getHRes()
Return the horizontal resolution of the source image.

 o getVRes
 public float getVRes()
Return the vertical resolution of the source image.

 o getDataSize
 public int getDataSize()
Return the size of the compressed image.

 o getFrameCount
 public int getFrameCount()
Return number of frames in image data.

 o getName
 public String getName() throws UtilException
Return name of the compression algorithm.

 o getDepth
 public int getDepth()
Return pixel depth of source image.

 o getClutID
 public int getClutID()
Return ID number of the color table for image.

 o setCType
 public void setCType(int cType)
Set the compressor creator type.

Parameters:
cType - a compressor type.
 o setVersion
 public void setVersion(int version)
Set the version.

Parameters:
version - a version number.
 o setRevisionLevel
 public void setRevisionLevel(int revision)
Set the revision level.

Parameters:
revision - a revision number.
 o setVendor
 public void setVendor(int vendor)
Set the vendor.

Parameters:
vendor - a developer of the compressor.
 o setTemporalQuality
 public void setTemporalQuality(int temporalQuality)
Set temporal quality.

Parameters:
temporalQuality - a degree of temporal compression.
 o setSpatialQuality
 public void setSpatialQuality(int spatialQuality)
Set spatial quality.

Parameters:
a - degree of spatial compression.
 o setWidth
 public void setWidth(int width)
Set width of source image in pixels.

Parameters:
width - the width of the source image in pixels.
 o setHeight
 public void setHeight(int height)
Set height of source image in pixels.

Parameters:
height - the height of the source image in pixels.
 o setHRes
 public void setHRes(float hRes)
Set horizontal resolution.

Parameters:
hRes - the horizontal resolution of the source image.
 o setVRes
 public void setVRes(float vRes)
Set vertical resolution.

Parameters:
vRes - the vertical resolution of the source image.
 o setDataSize
 public void setDataSize(int dataSize)
Set the data size.

Parameters:
dataSize - the size of the compressed image.
 o setFrameCount
 public void setFrameCount(int frameCount)
Set the frame count.

Parameters:
frameCount - the number of frames in the image data.
 o setName
 public void setName(String name) throws UtilException
Set the name of the compression algorithm.

Parameters:
name - indicates the compression algorithm.
 o setDepth
 public void setDepth(int depth)
Set the pixel depth.

Parameters:
depth - is the pixel depth specified for the compressed image.
 o setClutID
 public void setClutID(int clutID)
Set the id number of the color table.

Parameters:
clutID - contains the ID of the color table for the compressed image.
 o toString
 public String toString()
Returns the String representation of this Image Description.

Overrides:
toString in class SampleDescription

All Packages  Class Hierarchy  This Package  Previous  Next  Index